package com.liang.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.liang.entity.CYun;
import com.liang.mapper.CYunMapper;
import com.liang.service.CYunService;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 李昂
 * @since 2021-03-28
 */
@Service
public class CYunServiceImpl extends ServiceImpl<CYunMapper, CYun> implements CYunService {
    @Override
    public IPage<CYun> getResource(Page<CYun> page, String name, int state) {
        return this.baseMapper.getResource(page,name,state);
    }

    @Override
    public boolean deleteResource(int id) {
        return this.removeById(id);
    }
}
